# Maintainer: Brett Cornwall <ainola@archlinux.org>
# Contributor: Andrea Scarpino <andrea@archlinux.org>
# Contributor: Eric Gillingham <sysrq@sysrq.tk>

pkgname=libdiscid
pkgver=0.6.4
pkgrel=2
pkgdesc="A Library for creating MusicBrainz DiscIDs"
arch=('loong64' 'x86_64')
url="https://musicbrainz.org/doc/libdiscid"
license=('LGPL')
source=("$pkgname-$pkgver".tar.gz::"https://github.com/metabrainz/libdiscid/releases/download/v$pkgver/libdiscid-$pkgver.tar.gz")
sha256sums=('dd5e8f1c9aead442e23b749a9cc9336372e62e88ad7079a2b62895b0390cb282')

build() {
    cd "$pkgname-$pkgver"
    ./configure --prefix=/usr
    make
}

check() {
    cd "$pkgname-$pkgver"
    make check
}

package() {
    cd "$pkgname-$pkgver"
    make DESTDIR="$pkgdir" install
}
